﻿<Window x:Class="Opds_Viewer.Control.AddCatalogBox"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             WindowStyle="None" Background="{x:Null}"
             AllowsTransparency="True" WindowStartupLocation="CenterScreen"
             mc:Ignorable="d" Height="130" Width="400">

    <Window.CommandBindings>
        <CommandBinding Command="Save" CanExecute="OnCanExecute" Executed="OnExecute"/>
    </Window.CommandBindings>

    <Grid>
    	<Border BorderBrush="Black" Background="{DynamicResource MainWindowBackground}" CornerRadius="20" BorderThickness="0" Padding="0" Margin="0,0,5,5">
        	<Border.Effect>
        		<DropShadowEffect Opacity="0.7"/>
        	</Border.Effect>
        </Border>
		
    	<Grid Margin="10,5,15,5">
	        <Grid.RowDefinitions>
	            <RowDefinition Height="40"/>
	            <RowDefinition Height="40"/>
	            <RowDefinition Height="*"/>
	        </Grid.RowDefinitions>
	        
	        <Grid.ColumnDefinitions>
	            <ColumnDefinition Width="50"/>
	            <ColumnDefinition Width="*"/>
	        </Grid.ColumnDefinitions>

	        <!-- First Row : Name of the contact catalog -->
	        <TextBlock Text="Name:" Grid.Row="0" Grid.Column="0" VerticalAlignment="Center"/>
            <TextBox x:Name="tbName" Grid.Row="0" Grid.Column="1" Height="25"/>

	        <!-- Second Row : Url of the contact catalog -->
	        <TextBlock Text="Url:" Grid.Row="1" Grid.Column="0" VerticalAlignment="Center"/>
            <TextBox x:Name="tbUrl" Grid.Row="1" Grid.Column="1" Height="25"/>

	        <!-- Third Row : Action buttons -->
	        <StackPanel Grid.Row="2" Grid.Column="1" Orientation="Horizontal" Height="25" VerticalAlignment="Center" HorizontalAlignment="Right">
	            <Button Content="Add" Command="Save"  Width="100" Style="{DynamicResource WhiteButton}"/>
	            <Button Content="Cancel" Command="Close" Width="100" Margin="10,0,0,0" Style="{DynamicResource WhiteButton}"/>
	        </StackPanel>
    	</Grid>
	</Grid>
</Window>
